import {
  Tab,
  Tabs,
  Checkbox,
  Dialog,
  ActionSheet,
  Icon,
  Search,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  Toast,
  Button,
  Switch,
  Rate,
  Tabbar,
  TabbarItem,
  NavBar,
  Radio,
  Empty,
  Form,
  Field,
  CellGroup
} from 'vant'
import 'vant/lib/index.css'

export function registerVantComponents (app) {
  app.use(Tab)
    .use(Tabs)
    .use(Checkbox)
    .use(Dialog)
    .use(ActionSheet)
    .use(Icon)
    .use(Search)
    .use(Swipe)
    .use(SwipeItem)
    .use(Grid)
    .use(GridItem)
    .use(Toast)
    .use(Button)
    .use(Switch)
    .use(Rate)
    .use(Tabbar)
    .use(TabbarItem)
    .use(NavBar)
    .use(Radio)
    .use(Empty)
    .use(Form)
    .use(Field)
    .use(CellGroup)
}
